<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>{block name="title"}{$siteInfo.title}{/block}</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.13.2/theme-chalk/index.css">
    <style type="text/css">
        body {
            margin: 0;
            padding: 0;
        }
        .flex {
            display: flex;
            display: -webkit-flex;
            align-items: center;
            text-decoration: none;
        }
        .flex-col {
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
        }
        .header {
            height: 61px !important;
            border-bottom: solid 1px #e6e6e6;
        }
        .container {
            width: 1050px;
            margin: 0 auto;
        }
        .main-menu {
            border-bottom: 0 !important;
        }
        .main-menu a {
            text-decoration: none;
        }
        .main-menu .is-active {
            border-bottom: 0px !important;
        }
        .el-main {
            padding: 0px !important;
        }
        .logo {
            height: 50px;
            margin-right: 10px;
        }
        .logo-box .title {
            color: #2d8cf0;
            font-size: 20px;
        }
        .main-banner {
            padding: 20px 0;
            margin-bottom: 40px;
            text-align: center;
            background: #409EFF;
            color: #fff;
        }
        .main-banner .title {
            color: #fff;
            font-size: 28px;
        }
        .main-banner .description {
            margin-top: 10px;
            font-size: 18px;
        }
        .main-banner .banner img {
            width: 100%;
            height: 400px;
        }
        .footer {
            margin-top: 30px;
            padding: 15px !important;
            height: 50px !important;
            background: #777;
            color: #fff;
            font-size: 14px;
        }
        .footer a {
            color: #fff;
            text-decoration: none;
        }
    </style>
    {block name="style"}{/block}
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function () {
             document.removeEventListener('DOMContentLoaded', arguments.callee, false);
             (adsbygoogle = window.adsbygoogle || []).push({
                  google_ad_client: "ca-pub-7266354568159410",
                  enable_page_level_ads: true
             });
        }, false);
    </script>
</head>
<body>
    <div id="app">
        <div class="wrap">
            <el-container>
                <el-header class="header">
                    {block name="menu"}
                        <div class="container flex" style="justify-content: space-between;">
                            <div class="flex">
                                <div class="logo-box flex" style="margin-right: 30px;">
                                    <img src="<?php echo request()->rootUrl(); ?>/static/logo.png" class="logo">
                                    <span class="title">UniAdmin</span>
                                </div>
                                <el-menu default-active="home" class="main-menu" mode="horizontal">
                                  <el-menu-item index="home">
                                      <a href="/" title="首页">首页</a>
                                  </el-menu-item>
                                  {cms:cate_list id="vo"}
                                      <el-menu-item index="{$key}">
                                          <a href="{:url('cms/post/lists', ['cid' => $vo['id']])}" title="{$vo.title}">{$vo.title}</a>
                                      </el-menu-item>
                                  {/cms:cate_list}
                                </el-menu>
                            </div>
                        </div>
                    {/block}
                </el-header>
                <div class="banner">
                    {block name="banner"}
                        <div class="main-banner">
                            <div class="content">
                                <h1 class="title">{$siteInfo.title}</h1>
                                <p class="description">{$siteInfo.slogan}</p>
                                <p class="info"></p>
                            </div>
                        </div>
                    {/block}
                </div>
                <div class="main">
                    <el-container>
                        {block name="main"}主内容{/block}
                    </el-container>
                </div>
                <el-footer class="footer">
                    {block name="footer"}
                        <div class="container">
                            <div class="flex" style="justify-content: space-between;">
                                <div>
                                    {$siteInfo.copyright}
                                </div>
                                <div style="text-align: right;">
                                    <a target="_blank" href="http://www.beian.miit.gov.cn">{$siteInfo.icp}</a>
                                </div>
                            </Row>
                        </div>
                    {/block}
                </el-footer>
            </el-container>
        </div>
    </div>
</body>
    <script src="https://cdn.staticfile.org/vue/2.6.10/vue.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/element-ui@2.13.2/lib/index.js"></script>
    <script src="https://cdn.staticfile.org/axios/0.19.2/axios.min.js"></script>
    {block name="vue"}
        <script>
            new Vue({
              el: '#app',
              data: function() {
                return {}
              }
            })
        </script>
    {/block}
    {block name="script"}{/block}
</html>